function ajaxExec(url, params, successFun, faildFun) {
	var layer = layui.layer, form = layui.form, $ = layui.$;
	var loadIndex = layer.load();
	$.ajax({
		url: url,
		type: "POST",
		data: params,
		dataType: "json",
		success:function(retInfo) {
			layer.close(loadIndex);
			if(retInfo && retInfo.code == 0) {
				successFun(retInfo);
			} else {
				faildFun(retInfo);
			}
		},
		error:function(res) {
			layer.close(loadIndex);
			//errorFun(res);
		}
	});
}

function openForm(url, title, width, heigh) {
	layer.open({
        type: 2,
        title: title,
        shadeClose: false,
        shade: 0.5,
        moveType: 1,
        maxmin: true,
        area: [width + 'px', heigh + 'px'],
        content: [url, 'yes']
    });
}

function refreshDataList() {
	layui.$('#btnQuery').click();
}

function refreshParentDataList() {
 	parent.layui.$("#btnQuery").click();
}